package com.hm.cloud.nacos.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;



/**
* @Description: name：调⽤的服务名称，nacos-provider为数据提供方
* @param
* @return
* @throws
* @author Coder编程
* @date 2021/10/14 10:18
*/
@FeignClient(name="nacos-provider")
public interface TestFeignClient {

    /**
     * 调⽤的请求路径
     * @param id
     * @return
     */
    @GetMapping(value = "/test-feign/{id}")
    public Integer testFeign(@PathVariable(value = "id")Integer id);
}